package com.xb.cloud.gateway.client;

import java.util.List;
import java.util.Map;

import org.apache.commons.fileupload.FileItem;

/**
 * 
 * @ClassName: RequestInfo
 * @Description:网关初步处理请求，目的：1：方便服务端使用，2：便于网关保存请求日志
 * @author: 鲜备科技
 * @date: 2017年12月15日 下午10:00:58
 * 
 * @Copyright: 2017 www.xianbeitech.com Inc. All rights reserved.
 *
 */
public final class RequestInfo {

	private String userToken;
	private String merchantUserToken;
	private String provinceId;
	private String cityId;
	private ClientInfo clientInfo;
	private Map<String, String> bizPara;
	private List<FileItem> fileItems;

	public RequestInfo(ClientInfo clientInfo, String userToken, String provinceId, Map<String, String> bizPara) {
		this.clientInfo = clientInfo;
		this.userToken = userToken;
		this.provinceId = provinceId;
		this.bizPara = bizPara;
	}

	public RequestInfo(ClientInfo clientInfo, String userToken, String provinceId, String cityId, String userAgent,
			Map<String, String> bizPara) {
		this.clientInfo = clientInfo;
		this.userToken = userToken;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.bizPara = bizPara;
	}

	public String getUserToken() {
		return userToken;
	}

	public void setUserToken(String userToken) {
		this.userToken = userToken;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public Map<String, String> getBizPara() {
		return bizPara;
	}

	public void setBizPara(Map<String, String> bizPara) {
		this.bizPara = bizPara;
	}

	public ClientInfo getClientInfo() {
		return clientInfo;
	}

	public void setClientInfo(ClientInfo clientInfo) {
		this.clientInfo = clientInfo;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public List<FileItem> getFileItems() {
		return fileItems;
	}

	public void setFileItems(List<FileItem> fileItems) {
		this.fileItems = fileItems;
	}

	public String getMerchantUserToken() {
		return merchantUserToken;
	}

	public void setMerchantUserToken(String merchantUserToken) {
		this.merchantUserToken = merchantUserToken;
	}

}
